<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{:sys_config('SITE_NAME')} - 首页</title>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/common.css">
    {block name="head_css"}
    {/block}
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">{:sys_config('SITE_NAME')} 管理后台</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    {$admin_name}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('admin/edit_password')}" ">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="{:url('admin/logout')}">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" >
                {foreach name="$menuList" item="item"}
                    <li class="layui-nav-item {if condition="$item.parent.is_select eq 1"}layui-nav-itemed{/if}">
                        <a class="" href="javascript:;">{$item.parent.name}</a>
                        {if condition="$item.child"}
                            <dl class="layui-nav-child">
                                {foreach name="$item.child" item="c_item"}
                                    <dd {if condition="$c_item.is_select eq 1"}class="layui-this"{/if}>
                                        <a href="{:url('/'.$c_item.module.'/'.$c_item.controller.'/'.$c_item.action)}">{$c_item.name}</a>
                                    </dd>
                                {/foreach}
                            </dl>
                        {/if}
                    </li>
                {/foreach}
            </ul>
        </div>
    </div>


    <div class="layui-body">
        {block name="nav"}
            <div class="layui-card layadmin-header">
                <div class="layui-breadcrumb nav-header" lay-filter="breadcrumb" style="visibility: visible;">
                    {foreach name="nav" item="item"}
                        <a href="{:url('/'.$item.module.'/'.$item.controller.'/'.$item.action)}"><cite>{$item.name}</cite></a>
                    {/foreach}
                </div>
            </div>
        {/block}
        <div class="layui-fluid">
            {block name="body"}
                asd
            {/block}
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © {:sys_config('COPYRIGHT')}
    </div>
</div>
<script src="/static/admin/layui/layui.js?v={$version}"></script>
<script>
    layui.use(['element','table','layer'], function(){

    });
</script>
{block name="script"}
{/block}
</body>
</html>